package model;

/**
 * @Author: 燕子豪
 * @Date: 2023/1/2 15:23
 */
public class JoinTeamMsg {
    private Team team;
    private Race race;
    private User leader;
    private int teamUserCount;

    public JoinTeamMsg() {
    }

    public JoinTeamMsg(Team team, Race race, User leader, int teamUserCount) {
        this.team = team;
        this.race = race;
        this.leader = leader;
        this.teamUserCount = teamUserCount;
    }

    @Override
    public String toString() {
        return "JoinTeamMsg{" +
                "team=" + team +
                ", race=" + race +
                ", leader=" + leader +
                ", teamUserCount=" + teamUserCount +
                '}';
    }

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    public Race getRace() {
        return race;
    }

    public void setRace(Race race) {
        this.race = race;
    }

    public User getLeader() {
        return leader;
    }

    public void setLeader(User leader) {
        this.leader = leader;
    }

    public int getTeamUserCount() {
        return teamUserCount;
    }

    public void setTeamUserCount(int teamUserCount) {
        this.teamUserCount = teamUserCount;
    }
}